from flask_restful import fields

sub_fileds = {
    "id": fields.Integer,
    "name": fields.String
}



channel_filesd = {
    "cid": fields.Integer,
    "cname": fields.String,
    "is_visible": fields.Boolean,
    "is_default": fields.Boolean,
    "utime": fields.DateTime,
    "update_time": fields.DateTime,
    "sequence": fields.Integer
}

new_fileds = {
    "nid": fields.Integer,
    "user_id": fields.Integer,
    "channel_id": fields.Integer,
    "title": fields.String,
    "cover": fields.String,
    "status": fields.Integer,
    "is_advertising": fields.Boolean,
    "reviewer_id": fields.Integer,
    "ctime": fields.DateTime
}

comment_fileds = {
    "cmid": fields.Integer,
    "user_id": fields.Integer,
    "article_id": fields.Integer,
    "parent_id": fields.Integer,
    "like_count": fields.Integer,
    "content":fields.String,
    "reply_count": fields.Integer,
    "is_top": fields.Boolean,
    "status": fields.Integer,
    "ctime": fields.DateTime,
}